import {
  SET_USER_INFO
} from '../constant'

const initState = {}

export default function userInfoReducer(preState = initState, action) {
  const { type,data } = action
  switch (type) {
    case SET_USER_INFO:
      return {...data}
    default:
      return preState
  }
}
